﻿using ServiceStack.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmailClient.Model
{
    public class Log
    {
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }

        [Required]
        [References(typeof(EmailAccount))]
        public int AccountId { get; set; }

        [Required]
        [CustomField("CHAR(500)")]
        public string Event { get; set; }

        [Required]
        public DateTime DateEvent { get; set; }
    }
}
